package com.house365.im.client.util;


/**
 * 
 * @author Rick Ping
 * @date Dec 18, 2013
 * @comment
 */
public class JIDUtil {

	public static String getNameOfJID(String username) {
		username = username.trim().toLowerCase();
		if (username.contains("@")) {
			int index = username.indexOf("@");
			username = username.substring(0, index);

		}
		return username;
	}
}
